import Layout from '@/layout/index.vue'

// 系统路由
const routes = [
	{
		name: 'layout',
		path: '/',
		component: Layout,
		redirect: '/index',
		children: [
			{
				name: '主页',
				path: '/index',
				component: () => import('@/views/Index/index.vue'),

			},
			{
				path: '/noPermission',
				hidden: true,
				component: () => import('@/views/noPermission/index.vue')
			},

			/* {
				name: 'productManagement',
				path: '/productManagement',
				children: [
					{
						name: '产品类型',
						path: '/productManagement/producttypemgr',
						component: () => import('@/views/productManagement/producttypemgr/index.vue'),
					},
					{
						name: '产品型号',
						path: '/productManagement/productmodelmgr',
						component: () => import('@/views/productManagement/productmodelmgr/index.vue'),
					},
					{
						name: '生产批次',
						path: '/productManagement/productbatchmgr',
						component: () => import('@/views/productManagement/productbatchmgr/index.vue'),
					},
					{
						name: '产品记录',
						path: '/productManagement/productmgr',
						component: () => import('@/views/productManagement/productmgr/index.vue'),
					},
					{
						name: '老化记录',
						path: '/productManagement/agerecordmgr',
						component: () => import('@/views/productManagement/agerecordmgr/index.vue'),
					},
					{
						name: '检测记录',
						path: '/productManagement/checkrecordmgr',
						component: () => import('@/views/productManagement/checkrecordmgr/index.vue'),
					},
					{
						name: '托盘记录',
						path: '/productManagement/tuopanrecordmgr',
						component: () => import('@/views/productManagement/tuopanrecordmgr/index.vue'),
					},
					{
						name: '自动烧录记录',
						path: '/productManagement/autoburnrecordmgr',
						component: () => import('@/views/productManagement/autoburnrecordmgr/index.vue'),
					},
				]
			},
			{
				name: '统计管理',
				path: '/statisticalManagement',
				children: [
					{
						name: '老化完成率统计',
						path: '/statisticalManagement/agepassstatistics',
						component: () => import('@/views/statisticalManagement/agepassstatistics/index.vue'),
					},
					{
						name: '检测合格率统计',
						path: '/statisticalManagement/checkpassstatistics',
						component: () => import('@/views/statisticalManagement/checkpassstatistics/index.vue'),
					},
					{
						name: '打包出库率统计',
						path: '/statisticalManagement/packagestatistics',
						component: () => import('@/views/statisticalManagement/packagestatistics/index.vue'),
					},
					{
						name: '产品故障统计',
						path: '/statisticalManagement/faultstatistics',
						component: () => import('@/views/statisticalManagement/faultstatistics/index.vue'),
					},
					{
						name: '一次直通率统计',
						path: '/statisticalManagement/firstpassstatistics',
						component: () => import('@/views/statisticalManagement/firstpassstatistics/index.vue'),
					},
				]
			},
			{
				name: '设备管理',
				path: '/deviceManagement',
				children: [
					{
						name: '串口服务器',
						path: '/deviceManagement/serialsvrmgr',
						component: () => import('@/views/deviceManagement/serialsvrmgr/index.vue'),
					},
					{
						name: '工作区域',
						path: '/deviceManagement/workareamgr',
						component: () => import('@/views/deviceManagement/workareamgr/index.vue'),
					},
					{
						name: '老化车',
						path: '/deviceManagement/laohuachemgr',
						component: () => import('@/views/deviceManagement/laohuachemgr/index.vue'),
					},
					{
						name: '供电接口',
						path: '/deviceManagement/powerinterfacemgr',
						component: () => import('@/views/deviceManagement/powerinterfacemgr/index.vue'),
					},
				]
			},
			{
				name: '系统管理',
				path: '/systemManagement',
				children: [
					{
						name: '部门管理',
						path: '/systemManagement/deptmgr',
						component: () => import('@/views/systemManagement/deptmgr/index.vue'),
					},
					{
						name: '用户管理',
						path: '/systemManagement/usermgr',
						component: () => import('@/views/systemManagement/usermgr/index.vue'),
					},
					{
						name: '角色管理',
						path: '/systemManagement/rolemgr',
						component: () => import('@/views/systemManagement/rolemgr/index.vue'),
					},
					{
						name: '日志管理',
						path: '/systemManagement/syslogmgr',
						component: () => import('@/views/systemManagement/syslogmgr/index.vue'),
					},
				]
			} */

		]
	},

	{
		path: '/login',
		component: () => import('@/views/Login/index.vue'),
		meta: {
			title: '登录'
		}
	},
	{
		name: '实时监控',
		path: '/realTimeMonitoring',//integratedMonitoring
		component: () => import('@/realTimeMonitoring/index.vue'),
		children: [
			{
				name: '综合监控',
				path: '/realTimeMonitoring/monitorall',
				meta: {
					name: '综合监控大屏'
				},
				component: () => import('@/realTimeMonitoring/monitorall/index.vue'),
			},
			{
				name: '老化产线监控',
				path: '/realTimeMonitoring/monitorage',
				meta: {
					name: '老化产线监控大屏'
				},
				component: () => import('@/realTimeMonitoring/monitorage/index.vue'),
			},
			{
				name: '老化室监控',
				path: '/realTimeMonitoring/monitorageroom',
				meta: {
					name: '老化检测监控大屏'
				},
				component: () => import('@/realTimeMonitoring/monitorageroom/index.vue'),
			},

		]

	},


]

export default routes
